﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<ChoViet.CMS.ViewModels.SubMenuViewModel>" %>
<%@ Import Namespace="ChoViet.Lib.Common" %>
<ul>
    <li><a href="<%=LinkUtils.domain%>"><b>Trang chủ</b></a><span></span></li>
    <li><a href="<%=LinkUtils.UrlAdIndexDefault(Model.Demand != null && !string.IsNullOrEmpty(Model.Demand.ShortName)? Model.Demand.ShortName : "","","","","","",0)%>"><%=Model.Demand != null && !string.IsNullOrEmpty(Model.Demand.Name) ? Html.Encode(Model.Demand.Name) : "Mua bán"%></a><span></span></li>
    <li><a href="<%=LinkUtils.UrlAdIndexDefault(Model.Demand != null && !string.IsNullOrEmpty(Model.Demand.ShortName)? Model.Demand.ShortName : "",Model.Category!= null && !string.IsNullOrEmpty(Model.Category.ShortName)? Model.Category.ShortName :"","","","","",0)%>"><%=Model.Category!= null && !string.IsNullOrEmpty(Model.Category.Name) ? Model.Category.Name :"Hàng hóa" %></a><span></span></li>
    <li><a href="<%=LinkUtils.UrlAdIndexDefault(Model.Demand != null && !string.IsNullOrEmpty(Model.Demand.ShortName)? Model.Demand.ShortName : "",Model.Category!= null && !string.IsNullOrEmpty(Model.Category.ShortName)? Model.Category.ShortName :"",Model.City != null && !string.IsNullOrEmpty(Model.City.ShortName)? Model.City.ShortName :"",Model.Country != null && !string.IsNullOrEmpty(Model.Country.ShortName) ? Model.Country.ShortName : "","","",0)%>"> <%= Model.City != null && !string.IsNullOrEmpty(Model.City.Name) ? (Model.City.Name + (Model.Country != null && !string.IsNullOrEmpty(Model.Country.ShortName) ? (" - " + Model.Country.Name) : "")) : (Model.Country != null && !string.IsNullOrEmpty(Model.Country.ShortName) ? "Tại - " + Model.Country.Name : "Tại Việt Nam & Australia")%></a></li>
</ul>
